﻿using KAs.SeviceRegister.Interface;

namespace KAs.Utils.Oss;

public interface IAliyunOssService : IScopedDependency
{
    /// <summary>
    /// 上传文件
    /// </summary>
    /// <param name="inputStream"></param>
    /// <param name="savePath"></param>
    public void UploadFile(Stream inputStream, string savePath);
    /// <summary>
    /// 生成临时访问的路径
    /// </summary>
    /// <param name="fileName"></param>
    /// <returns></returns>
    public string GenerateUrl(string fileName, int minutes = 30);
    /// <summary>
    /// 删除文件
    /// </summary>
    /// <param name="fileName"></param>
    public void DeleteFile(string fileName);
}
